package com.suse.common.util.io;

import cn.hutool.core.util.ObjectUtil;

public class IoUtil {

    public static void close(AutoCloseable... autoCloseables) {
        for (AutoCloseable autoCloseable : autoCloseables) {
            try {
                if (ObjectUtil.isNotNull(autoCloseable)) {
                    autoCloseable.close();
                }
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }

}
